﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Web.UI.WebControls;

public partial class Student_ViewAssignmentRank : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            bindGrid();
    }

    private void bindGrid()
    {
        DataTable dtGrid = new DataTable();
        dtGrid = AdminCreateTestDAL.GetAssignmentRank(Convert.ToInt32(Request.QueryString["AssignmentId"]));
        gvRank.DataSource = dtGrid;
        gvRank.DataBind();
    }
}